package entry42.ref;

import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;

import java.util.Arrays;

import org.junit.Test;

public class Max {
	public int max(int firstArgs, int... args) {
		int max = firstArgs;
		for (int arg : args) {
			if (arg > max) {
				max = arg;
			}
		}

		return max;
	}
	@Test
	public void testMax() {
		assertThat(max(2, 3, 1), is(3));
	}


}
